package com.zhanghu.backendZray.pojo.request.user;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author ZhangDong
 * @date 2024/8/6 10:26
 */
@Data
public class ChangePasswordRequest {

    @NotNull(message = "id cannot be null")
    private Integer id;
    @NotEmpty(message = "旧密码不能为空")
    private String oldPassword;
    @NotEmpty(message = "新密码不能为空")
    private String newPassword;
    @NotEmpty(message = "重复新密码不能为空")
    private String repeatNewPassword;
}
